All Questions
21 questions
2votes
2answers
123views
Javascript convert number string to Boolean
I'm making this control toggle between hide and show base on the value in this hidden value. I wanted to use a Boolean because I ...
2votes
2answers
79views
How can I simplify this JQuery validation process?
How can I simplify this functioning JQuery validation process: ...
3votes
1answer
82views
eCommerce Mock App
This is a follow-up question to eCommerce Mockup App in JS. How do I implement the 'observe' pattern for the cart to regenerate html? So that, it will keep refresh its own. And any review on my coding ...
7votes
2answers
349views
Turtle Doodle (my first web app)
Turtle Doodle presents several panels which arrange themselves responsively. There is a canvas where the Turtle will move, leaving a paint trail behind him. A control panel allows various commands to ...
7votes
2answers
270views
eCommerce Mockup App in JS
I have completed this mockup eCommerce app using Javascript. This version can add products into a shopping cart and automatically calculate the order summary in the shopping cart. It can also delete ...
4votes
1answer
207views
Whitelist for textarea and save input to file
I'm working with product codes, so a user can only scan these type of product codes into a textarea element. I don't know if my code is written the best way possible, or has good performance. I'm ...
9votes
2answers
288views
Fetching movie data using jQuery
Requirements Display movie datas inside all tags that have the class movie_list Make an ajax call for fetching movie datas Fill loading text before fetch data If any error occurs during loading, the ...
2votes
1answer
384views
User upload & Drag image and update text
I am allowing user to upload images & drag uploaded image once user click on mask images, also gave an option to Edit the text.... I am fetching mask images and text from json file.... I am ...
2votes
1answer
1kviews
Symfony AJAX comment system with votes
How can I improve this code ? It was quite hard to implement AJAX comment system in Symfony 3, and result is a bit of mess: Controller: ...
2votes
2answers
898views
Validate Email as User is typing (JavaScript)
I have the following javascript function validateEmail(value). The goal of the function is to validate the users inputted email as they are typing. So if someone puts nfg@*gmail.com the email will be ...
3votes
2answers
101views
Making the font as big as possible without overflowing each div
I made a function that makes font sizes in <div>s as big as possible without overflowing. It takes a long time to run. How do I optimize this? ...
5votes
1answer
1kviews
JavaScript quiz game
Here is the JavaScript code: ...
4votes
2answers
5kviews
Quiz app from a JSON file
My code fetches quiz data from a JSON file, displays the questions sequentially and records the user’s answers. It keeps track of the user’s score and at the end displays their result based on a ...
6votes
2answers
552views
Soccer field map creator
I am fairly new to OOP and am working on a little website project to practice. I wanted to post after getting the initial setup done in case I am making any major errors or not following best ...
3votes
2answers
839views
jQuery replace HTML
In a portion of my code to get a "report view" where the element is different (textarea becomes a div or span) and use the same data with newlines I replace the new lines with page breaks. Currently ...